<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets">

<h:outputScript src="/seam/resource/remoting/interface.js?#{SeamRemotingBeanNames}" target="#{pageJsTarget}" />
<h:outputScript target="#{pageJsTarget}">
  // set the conversation id before doing any call
  Seam.Remoting.getContext().setConversationId(currentConversationId);
  Seam.Remoting.contextPath = '#{contextPath}';
  Seam.Remoting.resourcePath = '#{contextPath}/seam/resource/remoting';
</h:outputScript>

</ui:fragment>
